apiVersion: apps/v1
kind: Deployment
metadata:
  name: router-app-deployment
  labels:
    app: router-app
spec:
  replicas: 3
  selector:
    matchLabels:
      app: router-app
  template:
    metadata:
      labels:
        app: router-app
    spec:
      containers:
        - name: router-app-container
          image: router-app:${CI_COMMIT_SHORT_SHA}
          imagePullPolicy: Never
          ports:
            - containerPort: 8080

      volumes:
        - name: router-app-cm
          configMap:
            name: myapp-conf
